﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using haunstm_test_mvc_json.Models;

namespace haunstm_test_mvc_json.Controllers
{
    public class Client_To_ServerController : Controller
    {
        //
        // GET: /To_Server/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Save(Person person)
        {
            // save the student 
            var jsonResult = this.Json(person, JsonRequestBehavior.AllowGet);
            return jsonResult;
        }
    }
}
